<%@ page language="java" import="com.byxy.model.Department,com.byxy.service.DepartmentServiceImpl" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>更改部门信息</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href ="Styles/bootstrap.min.css"> 
</head>

<body>
	<% 
		int id = Integer.parseInt(request.getParameter("id"));
		DepartmentServiceImpl dePMSer = new DepartmentServiceImpl();
		Department  dePM = dePMSer.findById(id);
		
	 %>
	<p>根据编号修改对应信息</p>
	<form onSubmit="return chkads()" name="if_selectid"
		action="./DepartmentUpdaetServlet" method="post">
		<table class="table table-striped table-bordered table-condensed list">

			<tr>
				<td>编号：</td>
				<td>名称：</td>
			</tr>
			<tr class="demo">
				<td><input type="text" name="txtid"  value ="<%=dePM.getId()%>" readonly></td>
				<td><input type="text" name="txtname"  value ="<%=dePM.getName()%>"></td>
			</tr>

			<tr>
				<td colspan="6"><input class="btn btn-inverse" type="submit"
					name="input" value="修改" /> <a href="#" type=”button” name=”submit”
					onclick="javascript:history.back(-1);">返回上一页</a></td>
			</tr>
		</table>
	</form>
</body>
</html>
